package com.ruoyi.electricity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用电设备对象 t_electric_parameter
 *
 * @author ljw
 * @date 2023-08-29
 */
public class ElectricParameter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 单位编码 */
    @Excel(name = "单位编码")
    private String unitCode;

    /** 在线状态 */
    @Excel(name = "在线状态")
    private String onlineStatus;

    /** 设备位置编码 参照位置编码字典 */
    @Excel(name = "设备位置编码 参照位置编码字典")
    private String deviceLocationCode;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 参数编码 参照参数编码字典 */
    @Excel(name = "参数编码 参照参数编码字典")
    private String parameterCode;

    /** 参数名称 */
    @Excel(name = "参数名称")
    private String parameterName;

    /** 参数有量程段开始范围效 */
    @Excel(name = "参数有量程段开始范围效")
    private String parameterRangeStart;

    /** 参数有效量程段结束范围 */
    @Excel(name = "参数有效量程段结束范围")
    private String parameterRangeEnd;

    /** 参数有效量程段存在标识 0-存在 1-不存在 */
    @Excel(name = "参数有效量程段存在标识 0-存在 1-不存在")
    private String parameterRangeState;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String reserve1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String reserve2;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date delDate;

    /** 删除人 */
    @Excel(name = "删除人")
    private String delBy;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Integer delFlag;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setUnitCode(String unitCode)
    {
        this.unitCode = unitCode;
    }

    public String getUnitCode()
    {
        return unitCode;
    }
    public void setOnlineStatus(String onlineStatus)
    {
        this.onlineStatus = onlineStatus;
    }

    public String getOnlineStatus()
    {
        return onlineStatus;
    }
    public void setDeviceLocationCode(String deviceLocationCode)
    {
        this.deviceLocationCode = deviceLocationCode;
    }

    public String getDeviceLocationCode()
    {
        return deviceLocationCode;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }
    public void setParameterCode(String parameterCode)
    {
        this.parameterCode = parameterCode;
    }

    public String getParameterCode()
    {
        return parameterCode;
    }
    public void setParameterName(String parameterName)
    {
        this.parameterName = parameterName;
    }

    public String getParameterName()
    {
        return parameterName;
    }
    public void setParameterRangeStart(String parameterRangeStart)
    {
        this.parameterRangeStart = parameterRangeStart;
    }

    public String getParameterRangeStart()
    {
        return parameterRangeStart;
    }
    public void setParameterRangeEnd(String parameterRangeEnd)
    {
        this.parameterRangeEnd = parameterRangeEnd;
    }

    public String getParameterRangeEnd()
    {
        return parameterRangeEnd;
    }
    public void setParameterRangeState(String parameterRangeState)
    {
        this.parameterRangeState = parameterRangeState;
    }

    public String getParameterRangeState()
    {
        return parameterRangeState;
    }
    public void setReserve1(String reserve1)
    {
        this.reserve1 = reserve1;
    }

    public String getReserve1()
    {
        return reserve1;
    }
    public void setReserve2(String reserve2)
    {
        this.reserve2 = reserve2;
    }

    public String getReserve2()
    {
        return reserve2;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    public void setDelDate(Date delDate)
    {
        this.delDate = delDate;
    }

    public Date getDelDate()
    {
        return delDate;
    }
    public void setDelBy(String delBy)
    {
        this.delBy = delBy;
    }

    public String getDelBy()
    {
        return delBy;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("unitCode", getUnitCode())
                .append("onlineStatus", getOnlineStatus())
                .append("deviceLocationCode", getDeviceLocationCode())
                .append("deviceCode", getDeviceCode())
                .append("parameterCode", getParameterCode())
                .append("parameterName", getParameterName())
                .append("parameterRangeStart", getParameterRangeStart())
                .append("parameterRangeEnd", getParameterRangeEnd())
                .append("parameterRangeState", getParameterRangeState())
                .append("reserve1", getReserve1())
                .append("reserve2", getReserve2())
                .append("createBy", getCreateBy())
                .append("updateDate", getUpdateDate())
                .append("updateBy", getUpdateBy())
                .append("delDate", getDelDate())
                .append("delBy", getDelBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
